home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Ahoy 1987 July
/
Ahoy_Magazine_87-07_1987_Double_L_Side_A.d64
/
Electric Power2
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-10-26
|
312b
|
10 lines
0 rem << cd43-3 >>
1 rem ==================================
2 rem commodares problem #39-2 :
3 print"[147] [197]lectric [208]ower 2"
4 rem solution by
5 rem david hoffner
6 rem ==================================
10 inputa:b=2.79-.1259*(a-12)*(a>12)+.0207*(a>90)*(a-90)+.0124*(a>600)*(a-600)
20 print int(100*b+.5)/100